<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @property array $course 课程安排
 * @property int $id
 * @property int $school_id 所属学校
 * @property string $class 专业分类
 * @property string $createtime
 * @property string $culture 培养目标
 * @property string $major 专业排名
 * @property string $name 项目名
 * @property string $name_en 英文名
 * @property string $rank 综合排名
 * @property string $rule 申请要求
 * @property-read \app\model\TalentSchool $school
 * @mixin \think\Model
 */
class TalentSchoolClass extends Model
{
    protected $createTime = 'createtime';

    protected $type = [
        'course'=>'json'
    ];

    function school()
    {
        return $this->belongsTo(TalentSchool::class,'school_id');
    }
}
